package net.paoding.rose.jade.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* @Description: 对于POJO中的属性与表一一对应的时候，可以采用这个注解直接插入一条纪录
* 使用方式如下<code>@Update(tableName="d_user_info",keyColumn="id")</code>
* <code>Boolean updateUser(UserInfo user) throws Exception</code>
* @version: v1.0.0
* @author: coral coraldane@163.com
* @date: Jan 9, 2015 11:14:05 PM
*
* Modification History:
*  Date              Author          Version            Description
*-------------------------------------------------------------------*
* Jan 9, 2015      coraldane        v1.0.0
 */
@Target( { ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Update {
	
	String tableName();
	
	String keyColumn() default "id";
}
